#!/bin/csh -f

setenv ICE_CASENAME   undefined
setenv ICE_SANDBOX    undefined
setenv ICE_MACHINE    undefined
setenv ICE_ENVNAME    undefined
setenv ICE_MACHCOMP   undefined
setenv ICE_SCRIPTS    undefined
setenv ICE_CASEDIR    undefined
setenv ICE_RUNDIR     /glade/scratch/tcraig/ICEPACK_RUNS/${ICE_CASENAME}
setenv ICE_OBJDIR     ${ICE_RUNDIR}/compile
setenv ICE_RSTDIR     ${ICE_RUNDIR}/restart
setenv ICE_HSTDIR     ${ICE_RUNDIR}/history
setenv ICE_LOGDIR     ${ICE_CASEDIR}/logs
setenv ICE_RSTPFILE   undefined
setenv ICE_DRVOPT     icepack
setenv ICE_IOTYPE     none    # set to none if netcdf library is unavailable
setenv ICE_CLEANBUILD true
setenv ICE_CPPDEFS    ""
setenv ICE_QUIETMODE  false
setenv ICE_GRID       col
setenv ICE_NXGLOB     4
setenv ICE_NTASKS     1
setenv ICE_NTHRDS     1
setenv ICE_TEST       undefined   # Define if this is a test case
setenv ICE_TESTNAME   undefined   # Define if this is a test case
setenv ICE_BASELINE   undefined
setenv ICE_BASEGEN    undefined
setenv ICE_BASECOM    undefined
setenv ICE_BFBCOMP    undefined
setenv ICE_SPVAL      undefined
setenv ICE_RUNLENGTH  00:10:00
setenv ICE_ACCOUNT    undefined
setenv ICE_QUEUE      undefined

#======================================================

setenv ICE_THREADED   false
if (${ICE_NTHRDS} > 1) setenv ICE_THREADED  true

### Layers and Categories
setenv NICELYR   7         # number of vertical layers in the ice
setenv NSNWLYR   1         # number of vertical layers in the snow
setenv NICECAT   5         # number of ice thickness categories
setenv NFSDCAT   1         # number of floe size categories

### Tracers                # match icepack_in tracer_nml to conserve memory
setenv TRAGE     1         # set to 1 for ice age tracer
setenv TRFY      1         # set to 1 for first-year ice area tracer
setenv TRLVL     1         # set to 1 for level and deformed ice tracers
setenv TRPND     1         # set to 1 for melt pond tracers
setenv NTRAERO   1         # number of aerosol tracers 
                           # (up to max_aero in ice_domain_size.F90) 
                           # CESM uses 3 aerosol tracers
setenv NTRISO    0         # number of isotopes (up to max_iso)
setenv TRBRI     0         # set to 1 for brine height tracer
setenv TRZS      0         # set to 1 for zsalinity tracer
                           # (needs TRBRI = 1)
setenv TRBGCS    0         # set to 1 for skeletal layer tracers  
                           # (needs TRBGCZ = 0) 
setenv TRBGCZ    0         # set to 1 for zbgc tracers
                           # (needs TRBGCS = 0 and TRBRI = 1)         
setenv NBGCLYR   7         # number of zbgc layers
setenv TRZAERO   0         # number of z aerosol tracers 
                           # (up to max_aero = 6)
setenv TRALG     0         # number of algal tracers
                           # (up to max_algae = 3)
setenv TRDOC     0         # number of dissolve organic carbon 
                           # (up to max_doc = 3)
setenv TRDIC     0         # number of dissolve inorganic carbon 
                           # (up to max_dic = 1)
setenv TRDON     0         # number of dissolve organic nitrogen
                           # (up to max_don = 1)
setenv TRFEP     0         # number of particulate iron tracers 
                           # (up to max_fe  = 2) 
setenv TRFED     0         # number of dissolved iron tracers 
                           # (up to max_fe  = 2)

### Specialty code
setenv ICE_BLDDEBUG  false  # build debug flags
setenv ICE_COVERAGE  false   # code coverage flag


